<form id="rteListForm" class="ajax" action="{{ url('/database/routines') }}">
  {{ get_hidden_inputs(db, table) }}

  <fieldset>
    <legend>
      {% trans 'Routines' %}
      {{ show_mysql_docu('STORED_ROUTINES') }}
    </legend>

    <div id="nothing2display"{{ items is not empty ? ' class="hide"' }}>
      {% trans 'There are no routines to display.' %}
    </div>

    <table class="data{{ items is empty ? ' hide' }}">
      <tr>
        <th></th>
        <th>{% trans 'Name' %}</th>
        <th colspan="4">{% trans 'Action' %}</th>
        <th>{% trans 'Type' %}</th>
        <th>{% trans 'Returns' %}</th>
      </tr>
      <tr class="hide">{% for i in 0..7 %}<td></td>{% endfor %}</tr>

      {{ rows|raw }}
    </table>

    {% if items is not empty %}
      <div class="withSelected">
        <img class="selectallarrow" src="{{ select_all_arrow_src }}" width="38" height="22" alt="{% trans 'With selected:' %}">
        <input type="checkbox" id="rteListForm_checkall" class="checkall_box" title="{% trans 'Check all' %}">
        <label for="rteListForm_checkall">{% trans 'Check all' %}</label>
        <em class="with-selected">{% trans 'With selected:' %}</em>

        <button class="btn btn-link mult_submit" type="submit" name="submit_mult" value="export" title="{% trans 'Export' %}">
          {{ get_icon('b_export', 'Export'|trans) }}
        </button>
        <button class="btn btn-link mult_submit" type="submit" name="submit_mult" value="drop" title="{% trans 'Drop' %}">
          {{ get_icon('b_drop', 'Drop'|trans) }}
        </button>
      </div>
    {% endif %}
  </fieldset>
</form>
